package com.fy.consumer.feign;


import com.fy.common.api.CommonResult;
import com.fy.common.pojo.Ticket;
import com.fy.consumer.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Component
@FeignClient(name = "domain-order")
public interface ComsumerPurchaseFeignService {


    @GetMapping(value = "/ticketFindByTicketId")
    Ticket ticketFindByTicketId(int ticketId);


    @GetMapping(value = "/calendarFindByTicketId")
    List<CalendarVo> calendarFindByTicketId(int ticketId);

    @GetMapping(value = "/findAllTravelerByConsumerId")
    List<TravelerVo> findAllTravelerByConsumerId(int consumerId);

    @PostMapping(value = "/addTraveler")
    CommonResult addTraveler(AddressVo addressVo);

    @PostMapping(value = "/updateTravelerDefault")
    AddressVo updateTravelerDefault(int consumerId, int travelerId);

    @PostMapping(value = "/addTravelOrder")
    CommonResult addTravelOrder(TravelOrderVo travelOrderVo);


    @GetMapping(value = "/travelOrderFindById")
    TravelOrderVo travelOrderFindById(int travelOrderId);

    @GetMapping(value = "/travelOrderFindByConsumerId")
    List<ObjectOrderVo> travelOrderFindByConsumerId(int consumerId);

    @GetMapping(value = "/findAllTicket")
    List<TicketVo> findAllTicket(int storeId);
}
